package main

import "fmt"

func main() {
	m := map[string]string{
		"name":   "java",
		"course": "golang",
		"site":   "huran",
		"aa":     "bb",
	}
	fmt.Println(m)
	m2 := make(map[string]int)
	var m3 map[string]int
	fmt.Println(m2, m3)
	for k, v := range m {
		fmt.Println(k, v)
	}
	name, ok := m["name"]
	fmt.Println(name, ok)

	if name, ok := m["name"]; ok {
		fmt.Print(name)
	} else {
		fmt.Println("key does not exists")
	}
	delete(m, "name")
}
